#include "pch.h"

#include "Q:\includes\Log.h"
#pragma comment(lib,"Q:/build/lib/lib/static/Log.lib")

bool LogProtocol::StartLogService(std::string Title) {
	return LogStartService(Title);
}

bool LogProtocol::StartLogServiceEx(std::string LogFilePath, std::string Title) {
	return LogStartServiceEx(LogFilePath, Title);
}

void LogProtocol::StopLogService() {
	LogStopService();
}

bool LogProtocol::CheckLogServiceInitStatus() {
	return LogCheckServiceOpenStatus();
}

std::string LogProtocol::GetLogFileFullPath() {
	if (!LogProtocol::CheckLogServiceInitStatus()) return "";

	return LogGetFileFullPath();
}

void LogProtocol::WriteLog::Debug(std::string Message) {
#ifdef _DEBUG
	LogDebug(Message);
#endif // DEBUG

}

void LogProtocol::WriteLog::Info(std::string Message) {
	LogInfo(Message);
}

void LogProtocol::WriteLog::Warning(std::string Message) {
	LogWarning(Message);
}

void LogProtocol::WriteLog::Error(std::string Message) {
	LogError(Message);
}